import React,{Component} from 'react';
import cookie from 'react-cookies';
import './index.css'
class Login extends Component {
	login = () =>{
		cookie.save('userId','123',{path:'/'});
		//页面的跳转
		this.props.history.push('/cinemater');
	}
    render(){
        return (
            <div className='login'>
            	{
            		<div className='loin-from'>
	            		<input type="text" className="form-control" placeholder="输入手机号" />
		            	<input type="password" className="form-control" placeholder="输入验证码" />
		            	<button type="submit" className="center-block submit" onClick={this.login}>登录</button>
	            	</div>
            	}
           	</div>
        )
    }
}
export default Login;